var User = {
    setUser: function(user) {
        sessionStorage.setItem('ddz-user', JSON.stringify(user));
    },
    getUser: function() {
        return JSON.parse(sessionStorage.getItem('ddz-user'))
    }
}